<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019\6\12 0012
 * Time: 21:54
 */

namespace BigVideo\IMooc\Database;

/**
 * 适配器模式  三个连接数据库方法基础接口类
 * Interface IDatabase
 * @package BigVideo\IMooc
 */
interface IDatabase
{

    public function connect($host,$user,$passwd,$dbname);

    public function query($sql);

    public function close();
}